export function parseList(list){
  var result = []
  for(var i=0;i<list.length;i+=5){
    result.push(list.slice(i,i+5));
  }
  return result
}
export function handleScroll(e,fn) {
  if (e.target.scrollTop + e.target.clientHeight >= e.target.scrollHeight) {
    fn()
  }
}
export function insertMusic(row){
  this.$store.commit('addMusic',row)
}
export function toPlayList(id){
  this.$router.push('/playlistdetail/' + id +'/'+0)
}